/**
 * @author luoqingbo
 * @create 2024/4/30 9:48
 */
public class Leetcode2798 {
    public static void main(String[] args) {
        System.out.println(numberOfEmployeesWhoMetTarget(new int[]{0,1,2,3,4},2));
        System.out.println(numberOfEmployeesWhoMetTarget(new int[]{5,1,4,2,2},6));
    }
    public static int numberOfEmployeesWhoMetTarget(int[] hours, int target) {
        int res = 0;
        for (int i = 0; i < hours.length; i++) {
            if (hours[i] >= target) {
                res++;
            }
        }
        return res;
    }
}
